import request from '@/utils/request'

export function allListPcb() {
  return request({
    url: '/circuitDesign/circuitPcb/allList',
    method: 'get',
  })
}

export function listPcb(query) {
  return request({
    url: '/circuitDesign/circuitPcb/list',
    method: 'get',
    params: query
  })
}
export function getPcb(id) {
  return request({
    url: '/circuitDesign/circuitPcb/' + id,
    method: 'get'
  })
}
export function addPcb(data) {
  return request({
    url: '/circuitDesign/circuitPcb/',
    method: 'post',
    data: data
  })
}

export function updatePcb(data) {
  return request({
    url: '/circuitDesign/circuitPcb',
    method: 'put',
    data: data
  })
}

export function delPcb(id) {
  return request({
    url: '/circuitDesign/circuitPcb/' + id,
    method: 'delete'
  })
}
